package com.atguigu.gateway;

import com.atguigu.common.config.FeignClientConfig;
import com.atguigu.common.config.GlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1. 开启服务注册发现
 *      common模块引入了数据库相关依赖，但该模块不需要连接数据库，排除数据源的自动配置
 * @author ls
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, FeignClientConfig.class, GlobalExceptionHandler.class})
public class GulimallGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallGatewayApplication.class, args);
    }

}
